#include <iostream>
using namespace std;

typedef long long ll;
int N = 1e5+10;
    
//    5
// 4 2 4 5 1
void select_sort(int a[], int n){
	
    for (int i = 0; i < n-1; ++i){
        int rcd = i;
        for (int j = rcd+1; j < n; ++j){
            if(a[rcd] > a[j]) rcd = j;
        }
        
        if (i != rcd){
        	ll tmp = a[rcd];
        	a[rcd] = a[i];
        	a[i] = tmp;
		}
    }
    
}

int main(){
    int n; 
    cin >> n;
    int a[N];

    for (int i = 0; i < n; ++i){
    	cin >> a[i];
    }
    
    select_sort(a, n);
//    
    for (int i = 0; i < n; ++i)
        printf("%d,",a[i]);
        
    return 0;
}